﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CoolGridView.aspx.cs" Inherits="IdeaSparx.CoolControls.Website.CoolGridView" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="IdeaSparx.CoolControls.Web" Namespace="IdeaSparx.CoolControls.Web"
    TagPrefix="cc1" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>CoolGridView</title>
    <style type="text/css">
        .GridStyle TR TD, .GridStyle TR TH
        {
            font-family: Tahoma, Verdana, Arial;
            font-size: 10pt;
            padding-left: 4px;
            padding-top: 3px;
            padding-bottom: 3px;
            padding-right: 3px;
            border-top: 1px solid #A5A5A5;
            border-left: 1px solid #A5A5A5;
        }
        .GridStyle TR TH
        {
            background-color: #D3D7ED;
        }
        .GridAlternateRowStyle
        {
            background-color: #E9ECF8;
        }
        .GridRowStyle
        {
            background-color: White;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td>
                    <cc1:CoolGridView ID="CoolGridView3" runat="server" AutoGenerateColumns="False" AllowSorting="False"
                        Height="400px" Width="600px" AllowPaging="true" CssClass="GridStyle" EmptyDataText="No Data to Display"
                        PagerSettings-Mode="NextPreviousFirstLast" PagerSettings-Position="Bottom" PageSize="15">
                        <Columns>
                            <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID">
                                <HeaderStyle Width="120px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" Visible="false">
                                <HeaderStyle Width="200px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Tax ID" HeaderText="Tax ID" SortExpression="Tax ID" >
                                <HeaderStyle Width="350px" />
                            </asp:BoundField>
                        </Columns>
                        <BoundaryStyle BorderColor="Gray" BorderWidth="1px" BorderStyle="Solid"></BoundaryStyle>
                        <AlternatingRowStyle CssClass="GridAlternateRowStyle" />
                        <RowStyle CssClass="GridRowStyle" />
                        <ChildTemplate>
                            <asp:TextBox runat="server" ID="SampleTextBox1"></asp:TextBox>
                        </ChildTemplate>
                    </cc1:CoolGridView>
                </td>
            </tr>
        </table>    
    </div>
    </form>
</body>
</html>
